package com.sqlsession;

import com.sqlsession.database.DbType;
import com.sqlsession.filter.DbFilter;

public class DataBase {
    private String port;
    private String host;
    private String user;
    private String password;
    private String name;
    private DbType dbType;
    private DbFilter dbFilter;
    private String desc;

    public DataBase(DbType dbType, String port, String host, String user, String password, String name, DbFilter filter,String desc) {
        this.dbType = dbType;
        this.port = port;
        this.host = host;
        this.user = user;
        this.password = password;
        this.name = name;
        this.dbFilter = DbFilter.filter(filter);
        this.desc = desc;
    }


    public DbFilter getDbFilter() {
        return dbFilter;
    }

    public void setDbFilter(DbFilter dbFilter) {
        this.dbFilter = dbFilter;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DbType getDbType() {
        return dbType;
    }

    public void setDbType(DbType dbType) {
        this.dbType = dbType;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
